﻿using System;

namespace RedBit.OAuthLibrary
{
    public class BaseEventArgs<T> : EventArgs
    {
        private bool _isError;
        public bool IsError
        {
            get { return _isError || Error != null; }
            internal set { _isError = value; }
        }

        public string ErrorMessage { get; internal set; }
        public Exception Error { get; internal set; }
        public object UserState { get; set; }
        public T Response { get; set; }
    }
}
